package com.qst.rongxiaoserver.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qst.rongxiaoserver.mapper.ProductMapper;
import com.qst.rongxiaoserver.model.ProductModel;
import com.qst.rongxiaoserver.service.IProductService;
import org.springframework.stereotype.Service;

@Service
public class ProductServiceImpl extends ServiceImpl<ProductMapper, ProductModel> implements IProductService {
    // 实现自定义方法
    @Override
    public Page<ProductModel> getProductByPage(int pageNum, int pageSize) {

        Page<ProductModel> pageObj = new Page<>(pageNum, pageSize);
         return  this.page(pageObj);

    }
}
